package com.shareach.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;

import com.shareach.common.BaseQueryOrder;
import com.shareach.common.BizCondition;
import com.shareach.domain.BizActivityDomain;

/**
 * create time：2013-2-1 下午12:17:56
 * 
 * @author retryu
 * @since JDK 1.6
 * @version 1.0 description：
 */
public interface BizActivityService {
	Map<String,Object> saveOrUpdate(BizActivityDomain domain);

	Long save(BizActivityDomain domain);

	void del(BizActivityDomain domain);
	//update
	void update(BizActivityDomain domain);

	void update(BizActivityDomain domain, BizCondition contion);

	// update by domain
	void update(BizActivityDomain domain, BizActivityDomain contition);
	
	BizActivityDomain getById(Long id);

	List<BizActivityDomain> getList(BizActivityDomain domain);

	List<BizActivityDomain> getList(BizCondition condition);

	Page<BizActivityDomain> getPageResult(BizActivityDomain domain, BaseQueryOrder order);

	//void saveActivityImg(MultipartFile file, List<BizActivityDomain> activities, String path);

	BizActivityDomain findOne(BizActivityDomain domain);

	long saveOrUpdateBySid(BizActivityDomain domain);

	List<BizActivityDomain> getListByIds(List<Long> ids, BaseQueryOrder order);
}
